//tealium universal tag - utag.loader ut4.0.202609141230, Copyright 2026 Tealium.com Inc. All Rights Reserved. (function(w){if(typeof w.utag!=='undefined'&&typeof w.utag.e==='object'){w.utag_events=w.utag.e;delete w.utag;}}(window));if(typeof utag_err=='undefined')var utag_err=[];window._tealium_old_error=window._tealium_old_error||window.onerror||function(){};window.onerror=function(m,u,l){if(typeof u!=='undefined'&&u.indexOf('/utag.')>0&&utag_err.length<5)utag_err.push({e:m,s:u,l:l,t:'js'});window._tealium_old_error(m,u,l)};var utag_condload=false;try{(function(){function ul(src,a,b){a=document;b=a.createElement('script');b.language='javascript';b.type='text/javascript';b.src=src;a.getElementsByTagName('head')[0].appendChild(b)};var match=(""+document.cookie).match("(^|;\\s)utag_env_barcelo_bcom2019=(\/\/tags\.tiqcdn\.com\/utag\/barcelo\/[a-z0-9\\.-]{1,30}\\/[^\\s;]*)");if(match){if(match[2].indexOf("/prod/")===-1){var s=match[2];while(s.indexOf("%")!=-1){s=decodeURIComponent(s);}s=s.replace(/\.\./g,"");ul(s);utag_condload=true;__tealium_default_path='https://tags.barcelo.com/bcom2019/prod/';}}})();}catch(e){};try{try{(function(window){window.tbhg_utils=window.tbhg_utils||{};(function tealiumConfig(){window.utag_cfg_ovrd=window.utag_cfg_ovrd||{};window.utag_cfg_ovrd.noview=true;window.utag_cfg_ovrd.always_set_v_id=true;window.utag_cfg_ovrd.split_cookie=false;utag_cfg_ovrd.botList='bot|google|aolbuild|baidu|bing|msn|duckduckgo|teoma|slurp|yandex|ktxn|360Spider|404checker|404enemy|80legs|Abonti|Aboundex|Acunetix|ADmantX|AfD-Verbotsverfahren|AhrefsBot|AIBOT|AiHitBot|Aipbot|Alexibot|Alligator|AllSubmitter|AlphaBot|Anarchie|Apexoo|archive.org_bot|ASPSeek|Asterias|Attach|autoemailspider|BackDoorBot|Backlink-Ceck|backlink-check|BacklinkCrawler|BackStreet|BackWeb|Badass|Bandit|Barkrowler|BatchFTP|Battleztar\ Bazinga|BBBike|BDCbot|BDFetch|BetaBot|Bigfoot|Bitacle|Blackboard|Black\ Hole|BlackWidow|BLEXBot|Blow|BlowFish|Boardreader|Bolt|BotALot|Brandprotect|Brandwatch|Bubing|Buddy|BuiltBotTough|BuiltWith|Bullseye|BunnySlippers|BuzzSumo|Calculon|CATExplorador|CazoodleBot|CCBot|Cegbfeieh|CheeseBot|CherryPicker|CheTeam|ChinaClaw|Chlooe|Claritybot|Cliqzbot|Cloud\ mapping|coccocbot-web|Cogentbot|cognitiveseo|Collector|com.plumanalytics|Copier|CopyRightCheck|Copyscape|Cosmos|Craftbot|crawler4j|crawler.feedback|crawl.sogou.com|CrazyWebCrawler|Crescent|CSHttp|Curious|Custo|DatabaseDriverMysqli|DataCha0s|DBLBot|demandbase-bot|Demon|Deusu|Devil|Digincore|DigitalPebble|DIIbot|Dirbuster|Disco|Discobot|Discoverybot|DittoSpyder|DnyzBot|DomainAppender|DomainCrawler|DomainSigmaCrawler|DomainStatsBot|Dotbot|Download\ Wonder|Dragonfly|Drip|DTS\ Agent|EasyDL|Ebingbong|eCatch|ECCP/1.0|Ecxi|EirGrabber|EMail\ Siphon|EMail\ Wolf|EroCrawler|evc-batch|Evil|Exabot|Express\ WebPictures|ExtLinksBot|Extractor|ExtractorPro|Extreme\ Picture\ Finder|EyeNetIE|Ezooms|FDM|FemtosearchBot|FHscan|Fimap|Firefox/7.0|FlashGet|Flunky|Foobot|Freeuploader|FrontPage|FyberSpider|Fyrebot|GalaxyBot|Genieo|GermCrawler|Getintent|GetRight|GetWeb|Gigablast|Gigabot|G-i-g-a-b-o-t|Go-Ahead-Got-It|Gotit|GoZilla|Go!Zilla|Grabber|GrabNet|Grafula|GrapeFX|GrapeshotCrawler|GridBot|GT::WWW|Haansoft|HaosouSpider|Harvest|Havij|HEADMasterSEO|Heritrix|Hloader|HMView|HTMLparser|HTTP::Lite|HTTrack|Humanlinks|HybridBot|Iblog|IDBot|Id-search|IlseBot|Image\ Fetch|Image\ Sucker|IndeedBot|Indy\ Library|InfoNaviRobot|InfoTekies|instabid|Intelliseek|InterGET|Internet\ Ninja|InternetSeer|internetVista\ monitor|ips-agent|Iria|IRLbot|Iskanie|IstellaBot|JamesBOT|Jbrofuzz|JennyBot|JetCar|JikeSpider|JOC\ Web\ Spider|Joomla|Jorgee|JustView|Jyxobot|Kenjin\ Spider|Keyword\ Density|Kozmosbot|Lanshanbot|Larbin|LeechFTP|LeechGet|LexiBot|Lftp|LibWeb|Libwhisker|Lightspeedsystems|Likse|Linguee|Linkdexbot|LinkextractorPro|LinkpadBot|LinkScan|LinksManager|LinkWalker|LinqiaMetadataDownloaderBot|LinqiaRSSBot|LinqiaScrapeBot|Lipperhey|Litemage_walker|Lmspider|LNSpiderguy|Ltx71|lwp-request|LWP::Simple|lwp-trivial|Magnet|Mag-Net|magpie-crawler|Mail.RU_Bot|Majestic12|MarkMonitor|MarkWatch|Masscan|Mass\ Downloader|Mata\ Hari|MauiBot|Meanpathbot|Mediatoolkitbot|mediawords|MegaIndex.ru|Metauri|MFC_Tear_Sample|Microsoft\ Data\ Access|Microsoft\ URL\ Control|MIDown\ tool|MIIxpc|Mister\ PiX|MJ12bot|Mojeek|Mr.4x3|MSFrontPage|MSIECrawler|Msrabot|MS\ Web\ Services\ Client\ Protocol|muhstik-scan|Musobot|Name\ Intelligence|Nameprotect|Navroad|NearSite|Needle|Nessus|NetAnts|Netcraft|netEstate\ NE\ Crawler|NetLyzer|NetMechanic|NetSpider|Nettrack|Net\ Vampire|Netvibes|NetZIP|NextGenSearchBot|Nibbler|NICErsPRO|Niki-bot|Nikto|NimbleCrawler|Ninja|Nmap|NPbot|Nutch|oBot|Octopus|Offline\ Explorer|Offline\ Navigator|Openfind|OpenLinkProfiler|Openvas|OpenVAS|OrangeBot|OrangeSpider|OutclicksBot|OutfoxBot|PageAnalyzer|Page\ Analyzer|PageGrabber|page\ scorer|PageScorer|Panscient|Papa\ Foto|Pavuk|pcBrowser|PECL::HTTP|PeoplePal|PHPCrawl|Picscout|Picsearch|PictureFinder|Pimonster|Pi-Monster|Pixray|PleaseCrawl|plumanalytics|Pockey|POE-Component-Client-HTTP|Probethenet|ProPowerBot|ProWebWalker|Psbot|Pump|PxBroker|PyCurl|QueryN\ Metasearch|Quick-Crawler|RankActive|RankActiveLinkBot|RankFlex|RankingBot|RankingBot2|Rankivabot|RankurBot|RealDownload|Reaper|RebelMouse|Recorder|RedesScrapy|ReGet|RepoMonkey|Ripper|RocketCrawler|Rogerbot|s1z.ru|SalesIntelligent|SBIder|ScanAlert|Scanbot|scan.lol|Scrapy|Screaming|ScreenerBot|Searchestate|SearchmetricsBot|Semrush|SemrushBot|SEOkicks|SEOlyticsCrawler|Seomoz|SEOprofiler|seoscanners|SeoSiteCheckup|SEOstats|sexsearcher|Shodan|Siphon|SISTRIX|Sitebeam|SiteExplorer|Siteimprove|SiteLockSpider|SiteSnagger|SiteSucker|Site\ Sucker|Sitevigil|Slackbot-LinkExpanding|SlySearch|SmartDownload|SMTBot|Snake|Snapbot|Snoopy|SocialRankIOBot|sogouspider|Sogou\ web\ spider|Sosospider|Sottopop|SpaceBison|Spammen|SpankBot|Spanner|Spbot|Spinn3r|SputnikBot|Sqlmap|Sqlworm|Sqworm|Steeler|Stripper|Sucker|Sucuri|SuperBot|SuperHTTP|Surfbot|SurveyBot|Suzuran|Swiftbot|sysscan|Szukacz|T0PHackTeam|T8Abot|tAkeOut|Teleport|TeleportPro|Telesoft|Telesphoreo|Telesphorep|The\ Intraformant|TheNomad|TightTwatBot|Titan|Toata|Toweyabot|Tracemyfile|Trendiction|Trendictionbot|trendiction.com|trendiction.de|True_Robot|Turingos|Turnitin|TurnitinBot|TwengaBot|Twice|Typhoeus|UnisterBot|URLy.Warning|URLy\ Warning|Vacuum|Vagabondo|VB\ Project|VCI|VeriCiteCrawler|VidibleScraper|Virusdie|VoidEYE|Voil|Voltron|Wallpapers/3.0|WallpapersHD|WASALive-Bot|WBSearchBot|Webalta|WebAuto|Web\ Auto|WebBandit|WebCollage|Web\ Collage|WebCopier|WEBDAV|WebEnhancer|Web\ Enhancer|WebFetch|Web\ Fetch|WebFuck|Web\ Fuck|WebGo\ IS|WebImageCollector|WebLeacher|WebmasterWorldForumBot|webmeup-crawler|WebPix|Web\ Pix|WebReaper|WebSauger|Web\ Sauger|Webshag|WebsiteExtractor|WebsiteQuester|Website\ Quester|Webster|WebStripper|WebSucker|Web\ Sucker|WebWhacker|WebZIP|WeSEE|Whack|Whacker|Whatweb|Who.is\ Bot|Widow|WinHTTrack|WiseGuys\ Robot|WISENutbot|Wonderbot|Woobot|Wotbox|Wprecon|WPScan|WWW-Collector-E|WWW-Mechanize|WWW::Mechanize|WWWOFFLE|x09Mozilla|x22Mozilla|Xaldon_WebSpider|Xaldon\ WebSpider|Xenu|xpymep1.exe|YandexBot|YoudaoBot|Zade|Zauba|zauba.io|Zermelo|Zeus|zgrab|Zitebot|ZmEu|ZoominfoBot|ZumBot|ZyBorg|Phantom'.toLowerCase();utag_cfg_ovrd.user_agent_regex=new RegExp(utag_cfg_ovrd.botList,'i');if(utag_cfg_ovrd.user_agent_regex.test(navigator.userAgent)){utag_cfg_ovrd.noload=true;}})();window.tbhg_utils.checkSelector=function(selector){return document.querySelector(selector)!==null;};window.tbhg_utils.checkChannel=function(maxAttempts=100,interval=150){function getQueryParam(param){let urlParams=new URLSearchParams(window.location.search);return urlParams.get(param);} function setSessionCookie(name,value){let domain='barcelo.com';document.cookie=name+'='+JSON.stringify(value)+'; path=/; domain='+domain+'; samesite=strict';} function getCookie(name){const nameEQ=name+'=';const ca=document.cookie.split(';');for(let i=0;i=maxAttempts+10){clearInterval(intervalId);return;} attempts++;document.querySelectorAll('[data-data-phone]').forEach(function(element){let marketCode=element.getAttribute('data-data-phone');if(marketCodes[marketCode]&&channel&&phoneNumbers[channel]){if(replacePhoneNumbersInElements(marketCode,phoneNumbers[channel])){successfulReplacements++;}}});if(successfulReplacements>0&&attempts>=maxAttempts){clearInterval(intervalId);}},interval);};window.tbhg_utils.generateRandomEventID=function(eventName){return eventName+Math.random().toString(36).substr(2,10);};window.tbhg_utils.currencyConverter=function(currency){try{if(!window.tealiumiq_currency||!tealiumiq_currency.rates||!currency){return null;} const code=String(currency).trim().toUpperCase();const eurRateRaw=tealiumiq_currency.rates.EUR;const targetRateRaw=tealiumiq_currency.rates[code];const eurRate=parseFloat(String(eurRateRaw).replace(',','.'));const targetRate=parseFloat(String(targetRateRaw).replace(',','.'));if(!Number.isFinite(eurRate)||!Number.isFinite(targetRate)||targetRate===0){return null;} return eurRate/targetRate;}catch(e){return null;}};window.tbhg_utils.closeChatBot=function(){const checkInterval=500;const maxAttempts=40;let attempts=0;function setSessionCookie(name,value){document.cookie=name+'='+value+'; path=/; samesite=lax';} const intervalId=setInterval(function(){attempts++;let bubbleButton=document.querySelector('body > div.bot--bubble-holder > button.bot-widget-bubble.bot-elements--right');if(bubbleButton){if(window.innerWidth<=1024){const expandedButton=document.querySelector('button.bot-widget-bubble.bot-elements--right.bot-widget--expanded');if(expandedButton){expandedButton.classList.remove('bot-widget--expanded');}} let closeButton=document.createElement('button');closeButton.textContent='X';closeButton.style.position='fixed';closeButton.style.zIndex='2500000000';closeButton.style.padding='5px 10px';closeButton.style.backgroundColor='#2E5A75';closeButton.style.color='white';closeButton.style.border='none';closeButton.style.borderRadius='50%';closeButton.style.cursor='pointer';closeButton.style.fontSize='10px';closeButton.style.lineHeight='10px';closeButton.style.width='20px';closeButton.style.height='20px';closeButton.style.textAlign='center';closeButton.style.display='flex';closeButton.style.alignItems='center';closeButton.style.justifyContent='center';closeButton.style.bottom='80px';closeButton.style.right='15px';closeButton.style.visibility='visible';document.body.appendChild(closeButton);closeButton.addEventListener('click',function(){let chatbot=document.querySelector('body > div.bot--bubble-holder');if(chatbot){chatbot.style.display='none';closeButton.style.visibility='hidden';setSessionCookie('chatbotclosed','true');}});const observer=new MutationObserver(function(){if(bubbleButton.classList.contains('bot--hide')){closeButton.style.visibility='hidden';}else{closeButton.style.visibility='visible';}});observer.observe(bubbleButton,{attributes:true,attributeFilter:['class']});clearInterval(intervalId);} if(attempts>=maxAttempts){clearInterval(intervalId);}},checkInterval);};})(window);window.tbhg_utils.closeChatBot();if(window.tbhg_utils&&typeof window.tbhg_utils.checkChannel==='function'){const urlParams=new URLSearchParams(window.location.search);const pathName=window.location.pathname;if((urlParams.get('IHITEST')==='true'&&pathName.includes('/en-us/'))||(urlParams.get('IHITEST')==='true'&&urlParams.get('marketcampaig')==='US')){window.tbhg_utils.checkChannel();}} }catch(e){console.log(e)}}catch(e){console.log(e);} if(!utag_condload){try{try{(function(){if(window.location.hostname==="www.barcelo.com"||window.location.hostname==="reservation.barcelo.com"){return;} function i(e){if(!window.frames[e]){if(document.body&&document.body.firstChild){var t=document.body;var n=document.createElement("iframe");n.style.display="none";n.name=e;n.title=e;t.insertBefore(n,t.firstChild);}else{setTimeout(function(){i(e);},5);}}} function e(n,o,r,f,s){function e(e,t,n,i){if(typeof n!=="function"){return;} if(!window[o]){window[o]=[];} var a=false;if(s){a=s(e,i,n);} if(!a){window[o].push({command:e,version:t,callback:n,parameter:i});}} e.stub=true;e.stubVersion=2;function t(i){if(!window[n]||window[n].stub!==true){return;} if(!i.data){return;} var a=typeof i.data==="string";var e;try{e=a?JSON.parse(i.data):i.data;}catch(t){return;} if(e[r]){var o=e[r];window[n](o.command,o.version,function(e,t){var n={};n[f]={returnValue:e,success:t,callId:o.callId};if(i.source){i.source.postMessage(a?JSON.stringify(n):n,"*");}},o.parameter);}} if(typeof window[n]!=="function"){window[n]=e;if(window.addEventListener){window.addEventListener("message",t,false);}else{window.attachEvent("onmessage",t);}}} e("__tcfapi","__tcfapiBuffer","__tcfapiCall","__tcfapiReturn");i("__tcfapiLocator");(function(e,r){var t=document.createElement("link");t.rel="preconnect";t.as="script";var n=document.createElement("link");n.rel="dns-prefetch";n.as="script";var i=document.createElement("script");i.id="spcloader";i.type="text/javascript";i["async"]=true;i.charset="utf-8";var o="https://sdk.privacy-center.org/"+e+"/loader.js?target_type=notice&target="+r;if(window.didomiConfig&&window.didomiConfig.user){var a=window.didomiConfig.user;var c=a.country;var d=a.region;if(c){o=o+"&country="+c;if(d){o=o+"®ion="+d;}}} t.href="https://sdk.privacy-center.org/";n.href="https://sdk.privacy-center.org/";i.src=o;var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(t,s);s.parentNode.insertBefore(n,s);s.parentNode.insertBefore(i,s);})("a0752bb3-ce6b-48e4-9d40-ceb803c6b193","TthXmJK2");})();}catch(e){console.log(e)}}catch(e){console.log(e);}} if(!utag_condload){try{try{var bmind_script=document.createElement('script');bmind_script.src="https://tags.tiqcdn.com/utag/tiqapp/utag.currency.js";document.getElementsByTagName('head')[0].appendChild(bmind_script);}catch(e){console.log(e)}}catch(e){console.log(e);}} if(!utag_condload){try{try{(function(window,document,maxAttempts,interval){var attempts=0;document.addEventListener("evergage:onStatSend",(event)=>{function isAnalyticsLoaded(){return window.gtag&&typeof window.gtag==='function';} function whenAnalyticsLoaded(callback){if(isAnalyticsLoaded()){callback();}else if(attempts0){g.push(b);d++;}else{this.f[b.id]=1;}} if(utag.cfg.nonblocking_tags===true){var promises=[];var addExecutionPromise=function(self,functionToExecute,args,tagId){promises.push(async function(){try{setTimeout(function(){functionToExecute.apply(self,args)},1)}catch(e){utag.DB&&utag.DB(e);}})} for(a=0;a0?'&':'?')+'utv='+(a.v?utag.cfg.template+a.v:utag.cfg.v);utag.rpt['l_'+a.id]=a.src;b=document;this.f[a.id]=0;if(a.load==2){utag.DB("Attach sync: "+a.src);a.uid=a.id;b.write('